package com.kob.design.adapter.class_adapter;

import java.sql.SQLOutput;

/**
 * @Description: TODO
 * @Author: fyt
 * @Date: 2024/4/16 16:12
 **/
public class Client {
    public static void main(String[] args) {
        //计算机读取sd卡（直接读取）
        Computer computer = new Computer();
        String msg = computer.readSD(new SDCardImpl());
        System.out.println(msg);

        //计算机读取tf卡（无法直接读，通过适配器）
        String s = computer.readSD(new SDAdapterTF());
        System.out.println(s);
    }
}
